package utils

//下面只需要进行扩展即可

type EtcdImpl struct {
	t *template
}

func NewEtcdImpl() *EtcdImpl {
	return &EtcdImpl{}
}

//都是返回接口类型
func NewEtcdImplRegister(servciname string, impl cacheImpl) ServiceRegister {
	etcd := NewEtcdImpl()
	etcd.t = new(template)
	etcd.t.servicename = servciname
	etcd.t.cacheImpl = etcd
	if impl != nil {
		etcd.t.cacheImpl = impl
	}
	etcd.t.serviceimpl = etcd
	return etcd.t
}
func (e *EtcdImpl) Load(s string) (string, error) {
	panic("implement me")
}

func (e *EtcdImpl) Set(s string, s2 string, i int) error {
	panic("implement me")
}

func (e EtcdImpl) ServiceFindByServiceName(s string) (string, error) {
	panic("implement me")
}
